package day8.homeworkII.Task6;

import java.util.*;

public class Test {

    public static void main(String[] args) {

        // 调用Servlet准备好牌
        Servlet s = new ServletImpl();
        Set set = new HashSet<>();
        set = s.prepareCard();

        // 调用方法发牌
        ArrayList<Set<Card>> user = new ArrayList<Set<Card>>();
        user = s.Licensing(set);

        // 排序
        ArrayList<StringBuilder> Cards = new ArrayList<StringBuilder>();
        Cards = s.SortCard(user);

        // 看牌
        for (StringBuilder card : Cards) {
            System.out.println(card);
        }

    }
}
